﻿using SuperSocket.ClientEngine;
using System.Net;
using System.Text;

namespace SuperX.SuperSocket.Extensions
{
    public class TransferCommandInfo
    {
        public TransferCommandInfo()
        {
            EndPoint endpoint = new IPEndPoint(IPAddress.Parse("192.168.10.5"), 30001);
            var TcpClientSession = new AsyncTcpSession();
            TcpClientSession.Connect(endpoint);
            //tcpClientSession.DataReceived += new EventHandler<DataEventArgs>(this.client_DataReceived);

            byte[] bytes = Encoding.UTF8.GetBytes("你好！！！！！！！！");
        }

        public TransferCommandInfo(string key)
        {
            Key = key;
        }

        public TransferCommandInfo(string key, string text)
        {
            Key = key;
            Text = text;
        }

        public TransferCommandInfo(string key, byte[] data)
        {
            Key = key;
            Data = data;
        }

        public byte[] Data { get; set; }

        public string Key { get; set; }

        public string Text { get; set; }
    }
}
